package org.auf.controllers;

import java.util.Collection;

import org.auf.core.Controller;
import org.auf.model.dao.IEventDAO;
import org.auf.model.dao.IPointedDAO;
import org.auf.model.dao.IUserDAO;
import org.auf.model.jdbc.EventDAOJDBC;
import org.auf.model.jdbc.PointedDAOJDBC;
import org.auf.model.jdbc.UserDAOJDBC;
import org.auf.to.Event;
import org.auf.to.User;

public class ShowMyEventsController extends Controller {

	@Override
	public void show() {
		String id = (String) request.getParameter("id");
		IPointedDAO pointeddao = new PointedDAOJDBC();
		IUserDAO userdao = UserDAOJDBC.getInstance();
		User usertemp = userdao.selectUserByid(id);
		Collection<Event> misEventos = pointeddao.selectPointedByUser(usertemp);
		//redirigir a showevent del id que hizo clic
	}
}